<?php

namespace Lims\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CreditContractMap
 */
class CreditContractMap
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var \DateTime
     */
    private $createdDate;

    /**
     * @var integer
     */
    private $createdUserId;

    /**
     * @var boolean
     */
    private $isActive;

    /**
     * @var \Lims\MainBundle\Entity\Contract
     */
    private $contract;

    /**
     * @var \Lims\MainBundle\Entity\Credit
     */
    private $credit;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return CreditContractMap
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;

        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime 
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set createdUserId
     *
     * @param integer $createdUserId
     * @return CreditContractMap
     */
    public function setCreatedUserId($createdUserId)
    {
        $this->createdUserId = $createdUserId;

        return $this;
    }

    /**
     * Get createdUserId
     *
     * @return integer 
     */
    public function getCreatedUserId()
    {
        return $this->createdUserId;
    }

    /**
     * Set isActive
     *
     * @param boolean $isActive
     * @return CreditContractMap
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;

        return $this;
    }

    /**
     * Get isActive
     *
     * @return boolean 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set contract
     *
     * @param \Lims\MainBundle\Entity\Contract $contract
     * @return CreditContractMap
     */
    public function setContract(\Lims\MainBundle\Entity\Contract $contract = null)
    {
        $this->contract = $contract;

        return $this;
    }

    /**
     * Get contract
     *
     * @return \Lims\MainBundle\Entity\Contract 
     */
    public function getContract()
    {
        return $this->contract;
    }

    /**
     * Set credit
     *
     * @param \Lims\MainBundle\Entity\Credit $credit
     * @return CreditContractMap
     */
    public function setCredit(\Lims\MainBundle\Entity\Credit $credit = null)
    {
        $this->credit = $credit;

        return $this;
    }

    /**
     * Get credit
     *
     * @return \Lims\MainBundle\Entity\Credit 
     */
    public function getCredit()
    {
        return $this->credit;
    }
}
